package com.lsh.airticket.service;

import com.github.pagehelper.PageInfo;
import com.lsh.airticket.dto.RequestAirroute;
import com.lsh.airticket.dto.ShowAirroute;
import com.lsh.airticket.entity.Airroute;

import java.util.List;

/**
 * @author lsh
 * @date 2021/2/17
 **/
public interface AirrouteService {

    PageInfo<ShowAirroute> findAirrouteList();

    //插入一条数据
    int insertTbAirroute(RequestAirroute requestAirroute);

    //查询所有的航班。
    List<Airroute> findAirrouteAll();

    // 根据 起点的 城市  和 终点的才城市 id 查找所有的 航线
    List<Airroute> findAirrouteByCity(Integer fromCityId, Integer toCityId);

    // 删除数据
    int deleteAirrouteById(Integer airrouteId);
}
